<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>	
	<div class="myIframe_box">
		<div class="iframe_title">
			<div class="iframe_title_c">
				<div class="title_c_l">
					<span>用户列表</span>
					<a href="./index.php?param=users_insert">新增用户</a>
					<a href="javascript:; ">批量删除</a>	
				</div>

				<div class="mysearch">
					<form id="myform" action="./index.php?param=users_list" method="post" class="myform">
						<p><input type="text" name="key" placeholder="请输入关键字...."><i class="iconfont icon-sousuo1 " onclick="$('#myform').submit();"></i></p>
					</form>
				</div>
			</div>
		</div>
		<?php 
			if($count == 0){
				echo '<div class="title_b_hint"><button onclick="return history.back(-1);">返回上一级</button></div>';
			}
		?>

		<div class="middle_box">
			<table class="myTable lable" width="100%" cellspacing="0">
				<thead>
					<tr>
						<th><input type="checkbox" onclick="return checkboxs();">全选/反选</th>
						<th>ID</th>
						<th>图片</th>
						<th>昵称</th>
						<th>用户名</th>
						<th>邮箱</th>
						<th>个性签</th>
						<th>状态</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				<?php
					if($articleList){

						foreach($articleList as $val){

							$state = $val['state'] == 0 ? '正常' : '异常';

							echo '<tr>
								<th><input class="checkedse" type="checkbox" name="id" value="'. $val['id'] .'"></th>
									<th>'. $val['id'] .'</th>
									<th><img src="'. mb_substr($val['img'], 1,strlen($val['img']), 'utf8') .'"></th>
									<th>'. $val['name'] .'</th>
									<th>'. ucfirst($val['username']) .'</th>
									<th>'. $val['email'] .'</th>
									<th>'. mb_substr($val['content'], 0, 30, 'utf8') .' ....</th>
									<th>
										<a class="state" href="javascript:;"><input type="hidden" value="'. $val['state'] .'">'. $state .'</a>
									</th>
									<th class="handle">
			                          <a href="./index.php?param=users_update&id='. $val['id'] .'">编辑</a>
			                          <a href="javascript:" onclick="return UI.hintCon({\'url\':\'./pose/users_deleteAction.php?id='. $val['id'] .'\'})">删除</a>
									</th>
								</tr>';
						}
					}
				?>
				</tbody>
			</table>
		</div>

		<!-- page 分页模块 -->
		<div class="mypage clearBoth">	
			<?php
				if($maxPage > 1){
					echo strPage($page, $maxPage, $key, 'users_list');
				}
			?>
			<p>共有：<span><?php echo $count;?></span>&nbsp条数据</p>
		</div>
	</div>
</body>
</html>